
import request from "@/Utils/request";


// 按照不同的功能对request进行不同的封装  => 返回一个Promise实例 => res = {configs,data(请求的结果),headers,request}

// function searchAllGrade(params){
//     return request.get("/searchAllGrade.php",{
//         params:params
//     });
// }

export const searchAllGrade = params => request.get("/searchAllGrade.php",{params}).then(res=>res.data);
export const searchGradeOrderLimit = params => request.get("/searchGradeOrderLimit.php",{params}).then(res=>res.data);
export const addGrade = params => request.get("/addGrade.php",{params}).then(res=>res.data);
export const searchGradeById = params => request.get("/searchGradeById.php",{params}).then(res=>res.data);
export const deleteGradeById = params => request.get("/deleteGradeById.php",{params}).then(res=>res.data);
export const updateGradeById = params => request.post("/updateGradeById.php",params).then(res=>res.data);

// export {searchAllGrade,updateGrade}